<?php
/*
 * @Author: your name
 * @Date: 2021-12-27 20:39:21
 * @LastEditTime: 2021-12-28 21:19:51
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \Blog.com\app\common.php
 */
// 应用公共文件

//show  通用化api数据格式
function show($status, $message = 'error', $data = [], $httpRequest = 200)
{
    $result = [
        'status' => $status,
        'message' => $message,
        'result' => $data,
    ];
    return json($result, $httpRequest);
}
